# data "local_file" "cert" {
#     filename = "${path.module}/${var.ssl_cert}"
# }
# data "local_file" "key" {
#     filename = "${path.module}/${var.ssl_key}"
# }
data "local_file" "cert" {
    filename = "${var.slb_cert}"
}
data "local_file" "key" {
    filename = "${var.slb_key}"
}
resource "alicloud_slb_server_certificate" "main" {
  name                = var.slb_cert_name
  server_certificate  = data.local_file.cert.content
  private_key         = data.local_file.key.content
}